{% block form_validation_config %}
    {% set validationMessages = {
        required: 'error.VIOLATION::IS_BLANK_ERROR'|trans|sw_sanitize,
        email: 'error.VIOLATION::INVALID_EMAIL_FORMAT_ERROR'|trans|sw_sanitize,
        confirmation: 'error.VIOLATION::NOT_EQUAL_ERROR'|trans|sw_sanitize,
        minLength: 'error.VIOLATION::TOO_SHORT_ERROR'|trans|sw_sanitize,
        grecaptcha: 'error.VIOLATION::RECAPTCHA_COOKIE_REQUIRED'|trans|sw_sanitize,
    } %}

    <script>
        window.validationMessages = JSON.parse('{{ validationMessages|json_encode|escape('js') }}');
    </script>
{% endblock %}
